<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>角色详情</title>
<meta name="decorator" content="default" />
<style type="text/css">
	.form-box>li p{
		width: 160px;
	}
	.form-box>li .form-right{
		margin-left: 166px;
	}
</style>
</head>
<body>
	<div class="panel">
		<div class="panel-body">
			<div class="line">
				<span>基本信息</span>
				<hr style="border: 1px dotted #ddd; width: 100%; margin: 0px;" />
			</div>
			<ul class="form-box clearfix">
				<li>
					<p>角色名称：</p>
					<div class="form-right">
						<span>${role.name}</span>
					</div>
				</li>	
				<li>
					<p>英文名称：</p>
					<div class="form-right">
						<span>${role.enname}</span>
					</div>
				</li>
				<li>
					<p>归属机构：</p>
					<div class="form-right">
						<span>${role.office.name}</span>
					</div>
				</li>	
				<li>
					<p>角色类型：</p>
					<div class="form-right">
						<span>
							<c:choose>
								<c:when test="${role.roleType == 'assignment'}">
									任务分配
								</c:when>
								<c:when test="${role.roleType == 'security-role'}">
									管理角色
								</c:when>
								<c:otherwise>
									普通角色
								</c:otherwise>
							</c:choose>
						
						</span>
					</div>
				</li>
				<li>
					<p>是否系统数据：</p>
					<div class="form-right">
						<span>${fns:getDictLabel(role.sysData, 'yes_no','')}</span>
					</div>
				</li>
				<li>
					<p>是否可用：</p>
					<div class="form-right">
						<span>${fns:getDictLabel(role.dataScope, 'sys_data_scope','')}</span>
					</div>
				</li>
				<%-- <li>
					<p>数据范围：</p>
					<div class="form-right">
						<span>${fns:getDictLabel(role.sysData, 'yes_no','')}</span>
					</div>
				</li> --%>
				<li>
					<p>已添加用户：</p>
					<div class="form-right">
						<span>${usersStr}</span>
					</div>
				</li>
			</ul>	
		</div>
	</div>
	<jsp:include page="/WEB-INF/views/include/pageJs.jsp" />
</body>
</html>